package com.cater.sys.entity;

import java.util.List;

import com.cater.common.BaseEntity;


/**
 * 角色
 * @author sd
 *
 */
public class Role extends BaseEntity {

	private static final long serialVersionUID = 1L;
	private Integer id;
	private String name;//角色名
	private String description;//描述
	private String state;//状态
	private Integer roleType;//角色类型
	//一个角色有多个资源
	private List<Resource> resources;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public List<Resource> getResources() {
		return resources;
	}
	public void setResources(List<Resource> resources) {
		this.resources = resources;
	}
	public Integer getRoleType() {
		return roleType;
	}
	public void setRole_type(Integer roleType) {
		this.roleType = roleType;
	}

}
